package com.ele.Service;

import com.ele.Pojo.Food;
import com.ele.Pojo.PageResult;
import com.ele.Pojo.vo.FoodVO;

import java.util.List;

public interface FoodService {
    /**
     * 分页与条件查询菜品数据
     * @param currentPage
     * @param pageSize
     * @param categoryId
     * @param shopId
     * @return
     */
    PageResult<List<FoodVO>> findFood(String currentPage, String pageSize, String categoryId, String shopId, String foodName);

    /**
     * 添加菜品
     * @param food
     * @return
     */
    Integer addFood(Food food);

    /**
     * 修改菜品
     * @param food
     * @return
     */
    Integer updateFood(Food food);

    /**
     * 根据菜品id删除
     * @param foodId
     * @return
     */
    Integer deleteFood(String foodId);
}
